package com.example.coco.res;


import com.example.coco.model.Cusumer;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CusumerMapper {

    //插入数据
    @Insert("insert into cusumer(userid,userpassword) values (#{userid},#{userpassword})")
//    void insertCusumer(String userid,String userpassword);
//    int insertCusumer(@Param("userid") String userid,@Param("userpassword") String userpassword);
    void insertCusumer(Cusumer cusumer);

    //登录
    @Select("select userpassword from cusumer where userid = #{userid}")
    String findlog(String userid);
}
